<?php
/**
 * Created by yb.
 * Author: 1021948372@qq.com
 * Date: 2020/7/7 07:07
 */
namespace app\admin\controller;

use app\common\lib\SessionCheck;

class Index extends SessionCheck
{
    public function index()
    {
        $this->view->engine->layout(false);
        $leftMenuData = $this->getLeftMenuData();
        $this->assign('leftMenuData', $leftMenuData);
        return $this->fetch();
    }

    public function console_desk(){
        $this->view->engine->layout('common@tree_layout');
        $data = array(
            'total' => 20,
            'paying' => 30,
            'shipping' => 40,
            'shipped' => 50,
            'finished' => 60,
            'canceled' => 70
        );
        $this->assign('data',$data);
        return $this->fetch();
    }

    public function demo(){
        $img = array('/uploads/20181115/023ecb800cd80e737ecd5307f3424d9c.jpg','/uploads/20181115/023ecb800cd80e737ecd5307f3424d9c.jpg');
        $this->assign('imgs',json_encode($img));
        return $this->fetch();
    }

}
